﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#if !WINDOWS_PHONE && !SILVERLIGHT
using Microsoft.Xna.Framework.GamerServices;
#endif

namespace Brain
{
#if !WINDOWS_PHONE && !SILVERLIGHT && !MONOGAME
    public class XboxAvatar_Default : XboxAvatar
    {
        public AvatarAnimation Animation;

        public XboxAvatar_Default()
            : base()
        {
            Load();
        }
        public XboxAvatar_Default(AvatarDescription desc)
            : base(desc)
        {
            Load();
        }
        public XboxAvatar_Default(Gamer gamer, SetXboxAvatar set)
            : base(gamer, set)
        {
            Load();
        }

        private void Load()
        {
            Animation = new AvatarAnimation(AvatarAnimationPreset.Wave);
            this.IAvatarAnimation = Animation;
        }

        public override void Update()
        {
            Animation.Update(Engine.Instance.GameTime.ElapsedGameTime, Loop);
        }
    }
#endif
}
